/**
 * Created by wscl1 on 2015/8/1.
 */
exports.index = function (req, res) {
    res.send('test.');
}

exports.data = function (req, res) {
    var user = {
        name: "小明",
        age: 18
    }

    res.render('test', {title: "我是标题", user: user});
}